<script setup lang="ts">
import ElFormItemWrapper from "./components/ElFormItemWrapper.vue";
import {defineComponent, ref} from "vue";

const fieldModel = ref(null)

defineComponent({
  name: 'custom-el-select'
})
defineProps({
  field: Object,
  activeItem: Object
})
</script>

<template>
  <ElFormItemWrapper :field="field" :activeItem="activeItem">
    <el-select  v-model="fieldModel"
               :placeholder="field?.options.placeholder">
      <el-option v-for="item in field?.options.optionItems"
                 :key="item.value"
                 :label="item.label"
                 :value="item.value">
      </el-option>
    </el-select>
  </ElFormItemWrapper>
</template>

<style scoped>

</style>
